using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace ShoppingCenter.Backend.Api.Model
{
    public class Comment : BaseModel
    {
        public virtual Merchandise Merchandise { get; set; }

        // 商品id
        [Required]
        public int MerchandiseId { get; set; }
        
        public virtual User FromUser { get; set; }

        //当前评价的用户id
        [Required]
        public int FromUserId { get; set; }

        [Required]
        public string Content { get; set; }

    }
}